<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信息台</title>
<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>

</head>
<body> 
<form  method="post" action="MainContral">
<input name="type" value="begin" type="hidden" />
<input type="submit" value="开启采集" />&nbsp;&nbsp;&nbsp;&nbsp;
用户线程：<input name="user" value="4" type="text"/>&nbsp;&nbsp;
文章线程：<input name="post" value="2" type="text"/>&nbsp;&nbsp;
评论线程：<input name="comments" value="6" type="text"/>
</form>
	<div id="2" style="width: 100%;height: 100%;background-color: #000;float: left;font: normal;color: #00ff00;border: medium;"></div>&nbsp;&nbsp;
	<!-- <div id="3" style="width: 600px;height: 400px;background-color: #000;float: left;font: normal;color: #00ff00;border: medium;"></div>&nbsp;&nbsp;
	<div id="4" style="width: 600px;height: 400px;background-color: #000;float: left;font: normal;color: #00ff00;border: medium;"></div>&nbsp;&nbsp;
	<div id="5" style="width: 600px;height: 400px;background-color: #000;float: left;font: normal;color: #00ff00;border: medium;"></div> -->
</body>
<script type="text/javascript">
	function tt() {
		$("#2").html("");
		//$("#3").html("");
		//$("#4").html("");
		//$("#5").html("");
		$.post("MainContral", {
			"type" : "jiance"
		}, function(returnedData, status) {
			//var jsonarray= $.parseJSON(returnedData);
			//$.each(jsonarray, function (i, n)
			//		{
			//			$("#"+n.type).html($("#"+n.type).html()+"<br>"+n.startId);
			//		})
			//alert("ddd");
			$("#2").html(returnedData);
		});
	}
	setInterval("tt()", 5000)
</script>
</html>